import { createRouter, createWebHistory } from "vue-router";
import remainingRouter from "./modules/remaining";
import { useRouters } from "@/hooks/useRouter";
import homeRouter from "./modules/home";
const { dynamicList } = useRouters();

/**  创建路由实例 */
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [...dynamicList, ...remainingRouter, ...homeRouter],
});
// console.log(router.getRoutes(), 1);

export default router;
